package cn.edu.nuc.crm.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import cn.edu.nuc.crm.entity.Repayment;

public interface RepaymentMapper {
	 int deleteByPrimaryKey(Integer repaymentId);

	    int insert(Repayment record);

	    int insertSelective(Repayment record);

	    Repayment selectByPrimaryKey(Integer repaymentId);

	    int updateByPrimaryKeySelective(Repayment record);

	    int updateByPrimaryKey(Repayment record);
	    
	    int count();

		List<Repayment> findByid(@Param("start")int start,@Param("offset")int offset);
		//	查询
		List<Repayment> selectByName(String accountTruename);

		int accountRepaymentCount(@Param("accountid")Integer accountid);

		List<Repayment> findByid2(@Param("accountid")Integer accountid
				,@Param("start")int start,@Param("offset")int offset);

		int findCount();
}